home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / s / hpux8.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  2.8 KB  |  102 lines

  1. /* Synched up with: FSF 19.29. */
  2.  
  3. /* system description file for hpux version 8.
  4.    This contains changes that were suggested "for the hp700".
  5.    They were not needed for the 800.
  6.    Our conjecture that they are needed for hpux version 8,
  7.    which is what runs on the 700.  */
  8.  
  9. #include "hpux.h"
  10.  
  11. #define HPUX8
  12.  
  13. /* XEmacs change -- suggested by hamish@bnr.ca */
  14. #undef static
  15. #undef HPUX_PRE_8_0
  16.  
  17. /* XEmacs change -- Ugly, nasty kludge to prevent X11R4 Xos.h from
  18.    redefining struct timeval and struct timezone. */
  19. #define __TIMEVAL__
  20.  
  21. #if 0 /* RMSmacs */
  22. /* #### It appears that the FSF version of hpux8.h handles both
  23.    R4 and R5, while the XEmacs one handles only R4.  Someone
  24.    fix this up. */
  25.  
  26. /* dob@inel.gov says HPUX 8.07 needs this.  He was using X11R5, I think.  */
  27. #define LIBX11_SYSTEM -lXext
  28.  
  29. #define LIB_X11_LIB -L/usr/lib/X11R5 -L/usr/lib/X11R4 -lX11
  30. #define C_SWITCH_X_SYSTEM -I/usr/include/X11R5 -I/usr/include/X11R4
  31. #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R5 -L/usr/lib/X11R4
  32. #endif
  33.  
  34. /* XEmacs change -- changed LIBX11_SYSTEM and C_SWITCH_X_SYSTEM */
  35. #define C_SWITCH_X_SYSTEM -I/usr/include/X11R4 -I/usr/include/Motif1.1
  36. #define LD_SWITCH_X_SYSTEM -L/usr/lib/X11R4 -L/usr/lib/Motif1.1
  37.  
  38. /* Don't use shared libraries.  unexec doesn't handle them.
  39.    Note GCC automatically passes -a archive to ld, and it has its own
  40.    conflicting -a.  */
  41. #ifdef __GNUC__
  42. /* No need to specify roundabout way of linking temacs.  */
  43. #define ORDINARY_LINK
  44.  
  45. #ifdef HPUX_USE_SHLIBS
  46. #define LD_SWITCH_SYSTEM
  47. #else
  48. #define LD_SWITCH_SYSTEM -Xlinker -a -Xlinker archive
  49. #endif
  50.  
  51. #else /* not __GNUC__ */
  52.  
  53. #if (defined(hp9000s700) || defined(__hp9000s700))
  54. #ifdef HPUX_USE_SHLIBS
  55. #define LD_SWITCH_SYSTEM -L/lib/pa1.1
  56. #else
  57. #define LD_SWITCH_SYSTEM -a archive -L/lib/pa1.1
  58. #endif
  59. #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
  60. #ifdef HPUX_USE_SHLIBS
  61. #define LD_SWITCH_SYSTEM
  62. #else
  63. #define LD_SWITCH_SYSTEM -a archive
  64. #endif
  65. #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
  66.  
  67. #endif /* not __GNUC__ */
  68.  
  69. /* XEmacs change */
  70. #ifndef __GNUC__
  71. #define C_SWITCH_SYSTEM -Aa -D_HPUX_SOURCE
  72. #endif
  73.  
  74. /* Some hpux 8 machines seem to have TIOCGWINSZ,
  75.    and none have sioctl.h, so might as well define this.  */
  76. #define NO_SIOCTL_H
  77.  
  78. #if 0 /* autoconf should be detecting the presence or absence of 
  79.      random and srandom now.  */
  80. /* If you use X11R4 you must define this.  If you use
  81.    X11R5 you must comment this out */
  82. /* #define HAVE_RANDOM */
  83. #define random foo_random
  84. #define srandom foo_srandom
  85. #endif
  86.  
  87. #if 0  /* This seems to be spurious.  */
  88. /* "X11R5" on hpux8 doesn't have this function, which is supposed to exist
  89.    in X11R5.  Maybe things will work if we just don't call it.  */
  90. #define NO_XRM_SET_DATABASE
  91. #endif
  92.  
  93. /* Enable a special hack in XTread_socket.  */
  94. /* XEmacs change:  we don't use this. */
  95. #if 0
  96. #define X_IO_BUG
  97. #endif
  98.  
  99. /* XEmacs change */
  100.  
  101. #undef HAVE_UNION_WAIT
  102.